package com.handlemvc.springmvc.context;

import java.lang.annotation.Annotation;

/**
 * @author ：tiger.
 * @date ：2021/10/13 20:00
 */
public class AnnotationTypeFilter {

	public static boolean matchAny(Class<?> clazz, Class<? extends Annotation>... annotations){
		for (Class<? extends Annotation> annotation : annotations) {
			if(clazz.isAnnotationPresent(annotation)){
				return true;
			}
		} return false;
	}
}
